/*
 * @name: 
 * @version: 1.1.1
 * @Author: 刘大可
 * @Date: 2022-04-21 09:26:17
 * @LastEditors: 刘大可
 * @LastEditTime: 2022-04-21 09:34:49
 */
let userInfo = {
    name: "小明",
    age: 18
}
function getUser(){
    return userInfo
}
var user= getUser()
// let user2 = JSON.parse(JSON.stringify(user))
let user2 = getUser()
user2.name = "小红"
user2.age = 20
console.log(user);
console.log(user2);